<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>css上下左右四个箭头</title>
</head>
<body>
<h2>方向</h2>
<p>上 <i class="up"></i></p>
<p>下 <i class="down"></i></p>
<p>左 <i class="left"></i></p>
<p>右 <i class="right"></i></p>
<style>
    i {
        border:solid black;
        border-width: 0 3px 3px 0;
        display: inline-block;
        padding: 3px;
    }
    .up{
        transform: rotate(-135deg);
    }
    .down{
        transform: rotate(45deg);
    }
    .right{
        transform: rotate(-45deg);
    }
    .left{
        transform: rotate(135deg);
    }
</style>
</body>
</html>
